libxl: Allow AO_GC and EGC_GC even if not used
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 11 May 2012 17:59:01 +0000 (18:59 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 11 May 2012 17:59:01 +0000 (18:59 +0100)
commit61f04e2d73f89f34e842f6ed9902e8d1e4cc0b5d
tree59d895fcee60ff15b41368bed51da1cd1d3974c5
parent5ff68cd59c8c817490f17ea0bd61466c2b5b03d8
libxl: Allow AO_GC and EGC_GC even if not used

Mark the gc produced by AO_GC and EGC_GC with the gcc feature
__attribute__((unused)).  This allows the use of EGC_INIT and
STATE_AO_GC by functions which do actually use the gc.

This is convenient because those functions might want to use the ao or
egc, rather than the gc; and also because it means that functions
which morally ought to be fishing any gc they use out of an egc or
state structure can be written do so regardless of whether the gc is
actually used right then.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl_internal.h